package com.zf.shuashua.bean;

public class WithdrawJson1 {
    private String task;
    private boolean is_finsh;
    private String value;
    private String rate;
    //1：表示新人专享;  4：表示拉新专享； 7：游戏专享
    private int flag;
    //"friend":邀请好友;"task":日常任务；"game":试玩小游戏；"home":首页
    private String taskType;

    public String getBtnTitle(){
        if(is_finsh){
            return "下一步";
        }
        if("friend".equals(taskType)){
            return "去邀请";
        }
        return "去完成";
    }

    public String getTip1(){
        if("friend".equals(taskType)){
            return "已邀请 ";
        }
        if("game".equals(taskType)){
            return "已累计 ";
        }
        return "已完成 ";
    }

    public String getTip2(){
        if("friend".equals(taskType)){
            return " 人";
        }
        if("game".equals(taskType)){
            return " 金豆";
        }
        if("home".equals(taskType)){
            return " 天";
        }
        return " 个任务";
    }

    public String getUnit(){
        if("friend".equals(taskType)){
            return " 人";
        }
        if("game".equals(taskType)){
            return " 金豆";
        }
        if("home".equals(taskType)){
            return " 天";
        }
        return " 个";
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public boolean isIs_finish() {
        return is_finsh;
    }

    public void setIs_finish(boolean is_finish) {
        this.is_finsh = is_finish;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }
}
